package com.hnqcgczy.wyw.dao;


import com.hnqcgczy.wyw.vo.TUser;

import java.sql.SQLException;
import java.util.List;

public interface IUserDao {
    //语法：修饰符+返回类型+方法名（参数类型1 参数变量名1，。。。）抛异常
    //登录方法
    boolean login(String tu_id,String tu_password)throws SQLException;
    //新增方法
    boolean insert(String tu_id,String tu_password)throws SQLException;
    //获得所有用户方法
    List<TUser>  getAll()throws SQLException;
    //根据ID获取该用户信息方法
    TUser  getUserByID(String tu_id)throws SQLException;
    //根据真实姓名查询用户信息
    List<TUser> getUsersByName(String tu_name)throws SQLException;
    //模糊查询
    List<TUser> getUserByAny(Object...obj)throws SQLException;
    //更新数据
    boolean update(TUser tUser)throws SQLException;
    //根据ID删除数据
    boolean deleteById(String tu_id)throws SQLException;
    //    查询昵称可不可用
    boolean  queryByID(String tu_id)throws SQLException;

}
